<?php

class Profile extends Controller {

    function __construct() {
        parent::Controller();
    }

    function index() {
        $profileMaster = Doctrine::getTable('IndividualMaster') ;
        
        $list = $profileMaster->findAll();;

        echo $list->count(); // echo '2''
        foreach ($list as $profiles) {
            echo "<p>Name: ". $profiles->f_name." ".$profiles->m_name." ".$profiles->l_name;
            echo "&nbsp; Gender: ".$profiles->gender;
            echo "&nbsp; Marital: ".$profiles->marital;
            echo"</p>";
        } 
    }
}

/* End of file welcome.php */
/* Location: ./system/application/controllers/welcome.php */